/*
* Copyright 2025 NXP
* NXP Confidential and Proprietary. This software is owned or controlled by NXP and may only be used strictly in
* accordance with the applicable license terms. By expressly accepting such terms or by downloading, installing,
* activating and/or otherwise using the software, you are agreeing that you have read, and that you agree to
* comply with and are bound by, such license terms.  If you do not agree to be bound by the applicable license
* terms, then you may not retain, install, activate or otherwise use the software.
*/

#include "lvgl.h"
#include <stdio.h>
#include "gui_guider.h"
#include "events_init.h"
#include "widgets_init.h"
#include "custom.h"



void setup_scr_screen_1(lv_ui *ui)
{
	//Write codes screen_1
	ui->screen_1 = lv_obj_create(NULL);
	lv_obj_set_size(ui->screen_1, 240, 296);
	lv_obj_set_scrollbar_mode(ui->screen_1, LV_SCROLLBAR_MODE_OFF);

	//Write style for screen_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
	lv_obj_set_style_bg_opa(ui->screen_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_bg_color(ui->screen_1, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_bg_grad_dir(ui->screen_1, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);

	//Write codes screen_1_animimg_1
	ui->screen_1_animimg_1 = lv_animimg_create(ui->screen_1);

//	lv_animimg_set_src(ui->screen_1_animimg_1, (const void **) screen_1_animimg_1_imgs, 9, false);
	lv_animimg_set_src(ui->screen_1_animimg_1, (const void **) screen_1_animimg_1_imgs, 9);
	lv_animimg_set_duration(ui->screen_1_animimg_1, 100*9);
	lv_animimg_set_repeat_count(ui->screen_1_animimg_1, LV_ANIM_REPEAT_INFINITE);
	lv_animimg_start(ui->screen_1_animimg_1);
	lv_obj_set_pos(ui->screen_1_animimg_1, 70, 98);
	lv_obj_set_size(ui->screen_1_animimg_1, 100, 100);

	//The custom code of screen_1.
	

	//Update current screen layout.
	lv_obj_update_layout(ui->screen_1);

}
